package com.example.myretrofit2.service;

import com.example.myretrofit2.Goods;
import com.example.myretrofit2.User;
import com.example.myretrofit2.httpResult.HttpResult;

import java.util.List;

import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import rx.Observable;

public interface GoodsService {
    @POST("goods/queryList")
    Observable<HttpResult<List<Goods>>> getGoods(@Body Goods goods);
    @GET("goods/queryGoodsInfo")
    Observable<HttpResult<Goods>> getGoodsInfo(@Query("id") int id);//?id=#{id}
}
